<%@ Page Language="C#" MasterPageFile="~/Frame.Master" AutoEventWireup="true" Codebehind="SystemsRoles.aspx.cs"
    Inherits="BaseSystem._System.SystemsRoles" Title="System Roles Management" %>

<%@ Register Src="UserControl/ucRoleMenu.ascx" TagName="ucRoleMenu" TagPrefix="uc2" %>
<%@ Register Src="UserControl/ucRoles.ascx" TagName="ucRoles" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentMain" runat="server">

    <script src="../_System/Script/Common.js" type="text/javascript"></script>

    <div>
        <div class="TitleDivStyle">
            <asp:Label ID="Label1" runat="server" Text="<%$Resources:Base,SysRoleMan%>"></asp:Label>
        </div>
        <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td nowrap="nowrap" valign="top">
                    <div id="SysManDiv"  class="overStyle" style="padding:1px">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowCommand="GridView1_RowCommand"
                        Width="450px" CssClass="GridViewStyleOutside" CellSpacing="0">
                        <FooterStyle />
                        <RowStyle />
                        <EditRowStyle />
                        <SelectedRowStyle />
                        <PagerStyle />
                        <HeaderStyle CssClass="GridViewHeaderStyleOutside" />
                        <AlternatingRowStyle />
                        <Columns>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <table border="0" cellpadding="0" cellspacing="0" width="450">
                                        <tr height="28px;">
                                            <td align="center" nowrap="nowrap" width="80">
                                                <asp:Label ID="lblSystID" runat="server" Text="<%$Resources:Base,SysID %>"></asp:Label></td>
                                            <td align="left" nowrap="nowrap" width="150">
                                                <asp:Label ID="lblSysName" runat="server" Text="<%$Resources:Base,SysName %>"></asp:Label></td>
                                            <td align="left" width="120">
                                                <asp:Label ID="lblNote" runat="server" Text="<%$Resources:Base,Note %>"></asp:Label></td>
                                            <td nowrap="nowrap" width="150">
                                            </td>
                                        </tr>
                                    </table>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <table border="0" cellpadding="0" cellspacing="0" style="border: royalblue 1px dotted;
                                        width: 100%;">
                                        <tr>
                                            <td>
                                                <table border="0" cellpadding="0" cellspacing="0" width="450">
                                                    <tr style="font-weight: bold;">
                                                        <td align="center" nowrap="nowrap" width="80">
                                                            <asp:Label ID="lblSysID" runat="server" Text='<%# bind("SysID") %>'></asp:Label></td>
                                                        <td nowrap="nowrap" style="width: 150px">
                                                            <asp:Label ID="lblSysName" runat="server" Text='<%# bind("SysName") %>'></asp:Label></td>
                                                        <td width="120">
                                                            <asp:Label ID="lblNote" runat="server" Text='<%# bind("Note") %>'></asp:Label></td>
                                                        <td align="left" nowrap="nowrap" width="150">
                                                            <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument="<%# Container.DisplayIndex %>"
                                                                CommandName="NewRole" Text="<%$Resources:Base,NewRole %>"></asp:LinkButton></td>
                                                    </tr>
                                                </table>
                                                <uc1:ucRoles ID="UcRoles1" runat="server" SystemID='<%# bind("SysID") %>' />
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                                <ItemStyle BorderStyle="None" />
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    </div>
                </td>
                <td nowrap="nowrap" valign="top" style="margin:0; padding:0;">
                    <table>
                        <tr>
                            <td>
                                <div class="borderStyle">
                                    <uc2:ucRoleMenu ID="UcRoleMenu1" runat="server" Visible="false"></uc2:ucRoleMenu>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <script type="text/javascript">
        window.onload=function()
        {
            setHeight("SysManDiv",-30);   
            setHeight("UcMenutree1div",-165);        
        }
        window.onresize=function()
        {
            setHeight("SysManDiv",-30);
            setHeight("UcMenutree1div",-165);
        }
       
</script>
</asp:Content>
